.class Lcom/waiqin365/base/login/bj;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/bj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3

    const/4 v2, 0x2

    iget-object v0, p0, Lcom/waiqin365/base/login/bj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iget v0, v0, Landroid/view/WindowManager$LayoutParams;->softInputMode:I

    if-eq v0, v2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/bj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/bj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->inputMethodManager:Landroid/view/inputmethod/InputMethodManager;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3800(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/bj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_0
    const/4 v0, 0x0

    return v0
.end method
